package com.suke.czx.modules.examstack.exam.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.suke.czx.modules.examstack.exam.dao.QuestionTypeDao;
import com.suke.czx.modules.examstack.exam.entity.QuestionTypeEntity;
import com.suke.czx.modules.examstack.exam.service.QuestionTypeService;



@Service("questionTypeService")
public class QuestionTypeServiceImpl implements QuestionTypeService {
	@Autowired
	private QuestionTypeDao questionTypeDao;
	
	@Override
	public QuestionTypeEntity queryObject(Integer id){
		return questionTypeDao.queryObject(id);
	}
	
	@Override
	public List<QuestionTypeEntity> queryList(Map<String, Object> map){
		return questionTypeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return questionTypeDao.queryTotal(map);
	}
	
	@Override
	public void save(QuestionTypeEntity questionType){
		questionTypeDao.save(questionType);
	}
	
	@Override
	public void update(QuestionTypeEntity questionType){
		questionTypeDao.update(questionType);
	}
	
	@Override
	public void delete(Integer id){
		questionTypeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		questionTypeDao.deleteBatch(ids);
	}
	
}
